/* command.h */

/********************/
/* SPCORE-COMMAND   */
/* for User-Process */
/* (C) 2003 by NAH6 */
/********************/

#ifndef __COMMAND_H
#define __COMMAND_H
#ifdef __cplusplus
extern "C" {
#endif

/*------------*/
/*  INCLUDES  */
/*------------*/

#include <windows.h>

/*-----------*/
/*  DEFINES  */
/*-----------*/

#define E_CMD_NULLPTR        (-0x0101)
#define E_CMD_IPCDLL         (-0x0102)
#define E_CMD_NOMEM          (-0x0103)
#define E_CMD_MEMFREE        (-0x0104)
#define E_CMD_WAITEVT        (-0x0105)
#define E_CMD_MSGQUEUE       (-0x0106)

/*====*/

#define K_CMD_VERMAJ            (0x01)
#define K_CMD_VERMIN            (0x01)
#define K_CMD_VERREV            (0x00)

/*----*/

#define K_CMD_NOTIFY_RINGOFF       (0)
#define K_CMD_NOTIFY_RINGON        (1)
#define K_CMD_NOTIFY_RING          (2)
#define K_CMD_NOTIFY_CONNECT_0     (3)
#define K_CMD_NOTIFY_CONNECT_1     (4)
#define K_CMD_NOTIFY_HANGUP        (5)
#define K_CMD_NOTIFY_FINAL         (6)
#define K_CMD_NOTIFY_RXUSERDATA    (7)
#define K_CMD_NOTIFY_TXUSERDATA    (8)
#define K_CMD_NOTIFY_RXSYNC        (9)
#define K_CMD_NOTIFY_RXCODEC      (10)

/*--------------*/
/*  PROTOTYPES  */
/*--------------*/

DWORD WINAPI cmd_thread (LPVOID ptr);

void cmd_notify (unsigned char phone, unsigned char event, const void *info, \
                 signed short result);

#ifdef __cplusplus
}
#endif
#endif


/*** EOF ***/
